Skip to content

feat(k8s): Phase IV - Kubernetes Deployment with Helm#23

Merged
mjunaidca merged 3 commits intomainfrom
010-phase-iv-k8s-minikube
Dec 10, 2025
Merged

feat(k8s): Phase IV - Kubernetes Deployment with Helm#23
mjunaidca merged 3 commits intomainfrom
010-phase-iv-k8s-minikube

Conversation

@mjunaidca
Copy link
Owner

Summary

Complete Kubernetes deployment implementation for TaskFlow platform using Helm charts and Minikube.

What's Included

Helm Chart (helm/taskflow/)

  • Full multi-service deployment (SSO, API, MCP Server, Web Dashboard)
  • PostgreSQL StatefulSets with persistent volumes
  • ConfigMaps and Secrets with proper templating
  • Init containers for DB migrations and OAuth client seeding
  • Ingress resources for local development

Critical Password Fix

  • Single source of truth for all database passwords in values.yaml
  • Removed all hardcoded passwords from connection strings
  • Added kubernetes-deployment-validator skill with "Single Source of Truth" check

Deployment Scripts (scripts/)

  • deploy-local.sh - One-command deployment with --parallel, --rebuild, --port-forward flags
  • build-images.sh - Parallel Docker builds with 3x retry logic
  • start-port-forwards.sh - Automatic port-forwarding for all services
  • add-pgadmin.sh - Optional pgAdmin deployment

OAuth/Auth Improvements

  • seed-oauth-clients init container ensures OAuth clients exist in DB
  • Fixed MCP env_prefix issue (TASKFLOW_API_URL not API_URL)
  • Fire-and-forget email sending prevents signup blocking

Documentation

  • HELM-WALKTHROUGH.md - Complete deployment guide
  • KUBERNETES-DEBUGGING-GUIDE.md - Troubleshooting reference
  • LEARNINGS-PHASE-IV.md - Session insights and lessons learned

Test Plan

  • Run ./scripts/deploy-local.sh --rebuild --port-forward
  • Verify all 6 pods reach Running state
  • Test SSO login flow at http://localhost:3000
  • Test ChatKit agent commands ("Show my tasks")
  • Verify OAuth seed logs show successful client registration

Quick Start

minikube start --memory=4096 --cpus=2
./scripts/deploy-local.sh --rebuild --port-forward

🤖 Generated with Claude Code

mjunaidca and others added 3 commits December 9, 2025 13:24
- Introduced comprehensive task breakdown for deploying TaskFlow platform on Minikube using Helm.
- Organized tasks by user stories to facilitate independent implementation and testing.
- Included detailed phases covering setup, Helm chart creation, image builds, service deployment, and validation.
- Added documentation query strategies and troubleshooting guidance for each phase.
- Established acceptance criteria and independent tests for each user story to ensure deployment success.
Implement production-ready Kubernetes deployment for TaskFlow platform:

Helm Chart:
- Full chart for SSO, API, MCP Server, Web Dashboard
- PostgreSQL StatefulSets with PVC for both SSO and API databases
- ConfigMaps and Secrets with proper templating
- Init containers for migrations and OAuth client seeding
- Ingress resources for local development

Password Management (CRITICAL FIX):
- Single source of truth for database passwords in values.yaml
- Removed hardcoded passwords from connection strings
- All secrets now template from values.yaml sources
- Added kubernetes-deployment-validator skill check

Deployment Scripts:
- deploy-local.sh with --parallel and --rebuild flags
- build-images.sh with 3x retry logic and parallel builds
- start-port-forwards.sh for all services
- add-pgadmin.sh for database management

OAuth/Auth Fixes:
- seed-oauth-clients init container ensures clients exist
- Fixed MCP env_prefix issue (TASKFLOW_API_URL)
- Fire-and-forget email sending to prevent signup blocking

Documentation:
- HELM-WALKTHROUGH.md for deployment guide
- KUBERNETES-DEBUGGING-GUIDE.md for troubleshooting
- LEARNINGS-PHASE-IV.md capturing session insights

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mjunaidca mjunaidca merged commit 2f3fee3 into main Dec 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant